﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SBlogCore.Common.Helpers
{
    [SkipScan]
    public static class NumberGenerationHelper
    {
        /// <summary>
        /// 唯一订单号生成
        /// </summary>
        /// <returns></returns>
        public static string GenerateOrderNumber()
        {
            Random rad = new Random();
            string strDateTimeNumber = DateTime.Now.ToString("yyyyMMddHHmmssffff");
            string strRandomResult = rad.Next(1, 10000).ToString("0000");
            return strDateTimeNumber + strRandomResult;
        }
    }
}
